package com.oahcfly.chgame.egret.ui.property;

import com.badlogic.gdx.utils.ObjectMap;
import com.oahcfly.chgame.egret.ui.BaseUIProperty;

public class ButtonProperty extends BaseUIProperty{

	public String downSource,upSource;
	public ButtonProperty(ObjectMap<String, String> attributes) {
		super(attributes);
		// skinName="@ButtonSkin('shoopicon1_png','shoopicon2_png')" 
		String skinInfo = attributes.get("skinName");
		skinInfo = skinInfo.replace("@ButtonSkin", "").replace("(", "").replace(")", "").replace("\'", "");
		//shoopicon1_png,shoopicon2_png
		String[] tmp = skinInfo.split(",");
		downSource = tmp[0];
		upSource = tmp[1];
	}

}
